package stool.decorator;

/**
 * @author Felix YF Dong
 * @date 2021/5/2
 */
public class Finery extends Person{

    private Person component;

    public void decorate(Person person) {
        this.component = person;
    }

    @Override
    public void show() {
        if (null != component) {
            component.show();
        }
    }
}
